setFileTypeAndCreator
Sets the file type and creator of an existing Mac OS file.
public static final void setFileTypeAndCreator ( File file, MRJOSType type, MRJOSType creator) throws IOException;
- file
- The file whose file type and creator you want to set.
type
- The 4-byte file type you want to assign.
creator
- The 4-byte creator you wish to assign.
DISCUSSION
On the Mac OS, a file type is a 4-byte character constant that identifies the type of file to the Finder (for example,'TEXT'
for a text file, or'APPL'
for an application). A creator is a 4-byte character constant that the Finder uses to identify the application that created a document; doing so allows the Finder to launch or activate the appropriate application when the document is opened.SEE ALSO
ThesetFileType
method (page 38).The
setFileCreator
method (page 39).The "Finder Interface" chapter in Inside Macintosh: Macintosh Toolbox Essentials for information about file types and creators.